<template>
	<view class="privacyPolicy">
		<nav-bar :title="title"></nav-bar>
		<view class="title">{{data.title}}</view>
		<view class="content">{{data.content}}</view>
	</view>
</template>

<script>
	import NavBar from '@/components/nav-bar/index.vue'
	import {
		getConfigList
	} from '@/api/system/mine'
	export default {
		components: {
			NavBar
		},
		data() {
			return {
				title:'',
				data:{}
			}
		},
		onLoad(e) {
			if(e.title=='user_agreement'){
				this.title='用户协议'
			}else{
				this.title='隐私政策'
			}
			getConfigList({code:e.title}).then(res=>{
				this.data=res.data[0]
			})
		},
		methods: {
			
		}
	}
</script>

<style lang="less" scoped>
	.privacyPolicy{
		width: 100%;
		.title{
			width: 100%;
			font-weight: 600;
			font-size: 32rpx;
			text-align: center;
			margin: 15rpx 0;
		}
		.content{
			padding: 20rpx;
			width: 100%;
			box-sizing: border-box;
			word-wrap: break-word;
		}
	}

</style>
